package com.spic.business.datamanagement.equipment.controller;

import com.spic.business.datamanagement.equipment.entity.EquipmentInfo;
import com.spic.business.datamanagement.equipment.service.IEquipmentInfoService;
import com.spic.common.core.web.controller.BaseController;
import com.spic.common.core.web.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 数字矿山设备基本信息表 前端控制器
 * </p>
 *
 * @author 赵祥
 * @since 2022-11-19
 */
@RestController
@RequestMapping("/equipmentInfo")
public class EquipmentInfoController extends BaseController {
    @Autowired
    private IEquipmentInfoService equipmentInfoService;
    
    @GetMapping("/list")
    public TableDataInfo list(EquipmentInfo equipmentInfo) {
        startPage();
        List<EquipmentInfo> list = equipmentInfoService.list(equipmentInfo);
        return getDataTable(list);
    }
}
